/*
 * SigalSource.c
 *
 *  Created on: Jun 1, 2021
 *      Author: Rupert
 */

#include "SignalSource.h"

#include "SignalOutput.h"
#include "stdint.h"

void (*change_to_level[2])(void) =
{	OutputLow, OutputHigh
};

void genSquareWave(void)
{
	static uint8_t next_level = 0;
	change_to_level[next_level]();
	next_level = 1 - next_level;
}
